package restaurante;

import java.awt.Checkbox;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Kerenciita
 */
public class FormTomaPedido extends javax.swing.JFrame {

    JFrame padre;
    private String producto;
    private double precio;
    int fila;
    
    public FormTomaPedido() {
        initComponents();         
    }
    
    public FormTomaPedido(JFrame padre) {
        initComponents();
        this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);        
        this.padre= padre;
        this.setAlwaysOnTop(true);
        producto= "";
        fila= 0;
        precio= 0;
        total.setText("0.00");
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 120);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jButton14 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        total = new javax.swing.JLabel();
        jButton15 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jButton16 = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jButton21 = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        combosPane = new javax.swing.JPanel();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        ingredientesPanel = new javax.swing.JPanel();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jButton13 = new javax.swing.JButton();
        jButton18 = new javax.swing.JButton();
        jButton23 = new javax.swing.JButton();
        ingredientesPanel1 = new javax.swing.JPanel();
        jButton17 = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        jButton20 = new javax.swing.JButton();
        jButton22 = new javax.swing.JButton();
        jButton24 = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jButton25 = new javax.swing.JButton();
        jButton26 = new javax.swing.JButton();
        jButton27 = new javax.swing.JButton();
        jButton28 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jButton29 = new javax.swing.JButton();
        jButton30 = new javax.swing.JButton();
        jButton31 = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jButton32 = new javax.swing.JButton();
        jButton33 = new javax.swing.JButton();
        jButton34 = new javax.swing.JButton();
        jButton35 = new javax.swing.JButton();
        jButton36 = new javax.swing.JButton();
        jButton37 = new javax.swing.JButton();
        seleccionBttn = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Toma de Pedido");
        setPreferredSize(new java.awt.Dimension(1190, 450));
        setResizable(false);
        getContentPane().setLayout(null);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Cantidad", "Producto", "Precio/Unit "
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setToolTipText("");
        jScrollPane1.setViewportView(jTable1);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(670, 30, 346, 299);

        jButton14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Aceptar.jpg"))); // NOI18N
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton14);
        jButton14.setBounds(1030, 30, 43, 41);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setText("Total");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(670, 340, 68, 30);

        total.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        total.setForeground(new java.awt.Color(0, 0, 255));
        total.setName("Total");
        getContentPane().add(total);
        total.setBounds(760, 340, 100, 30);

        jButton15.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Quitar.jpg"))); // NOI18N
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton15);
        jButton15.setBounds(980, 340, 70, 60);

        jLabel4.setText("Generar Factura");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(980, 400, 100, 14);

        jButton16.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Cancelar.jpg"))); // NOI18N
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton16);
        jButton16.setBounds(890, 340, 66, 63);

        jLabel5.setText("Cancelar Orden");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(880, 400, 100, 14);

        jLabel6.setText("Quitar");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(1030, 70, 70, 14);

        jButton21.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/salir.jpg"))); // NOI18N
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton21);
        jButton21.setBounds(1070, 340, 70, 60);

        jLabel7.setText("Salir");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(1090, 400, 50, 14);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 195, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 262, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Descripción", jPanel2);

        getContentPane().add(jTabbedPane1);
        jTabbedPane1.setBounds(460, 30, 200, 290);

        jTabbedPane2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTabbedPane2MouseClicked(evt);
            }
        });

        combosPane.setBackground(new java.awt.Color(255, 255, 255));

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Combo1.jpg"))); // NOI18N
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Combo8.jpg"))); // NOI18N
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/combo2_1.jpg"))); // NOI18N
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Combo21.jpg"))); // NOI18N
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Combo4.jpg"))); // NOI18N
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/Combo5.jpg"))); // NOI18N
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout combosPaneLayout = new javax.swing.GroupLayout(combosPane);
        combosPane.setLayout(combosPaneLayout);
        combosPaneLayout.setHorizontalGroup(
            combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(combosPaneLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(36, 36, 36)
                .addGroup(combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(34, 34, 34)
                .addGroup(combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );
        combosPaneLayout.setVerticalGroup(
            combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(combosPaneLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addGroup(combosPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(48, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Combos", null, combosPane, "");

        ingredientesPanel.setBackground(new java.awt.Color(255, 255, 255));

        jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/ing1.jpg"))); // NOI18N
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/ing2.jpg"))); // NOI18N
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jButton13.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/ing3.jpg"))); // NOI18N
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton18.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/ing4.jpg"))); // NOI18N
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });

        jButton23.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/ing5.jpg"))); // NOI18N
        jButton23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton23ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ingredientesPanelLayout = new javax.swing.GroupLayout(ingredientesPanel);
        ingredientesPanel.setLayout(ingredientesPanelLayout);
        ingredientesPanelLayout.setHorizontalGroup(
            ingredientesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ingredientesPanelLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(ingredientesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(ingredientesPanelLayout.createSequentialGroup()
                        .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(30, 30, 30)
                        .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(ingredientesPanelLayout.createSequentialGroup()
                        .addComponent(jButton18, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton23, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(70, Short.MAX_VALUE))
        );
        ingredientesPanelLayout.setVerticalGroup(
            ingredientesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ingredientesPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ingredientesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton13, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addGroup(ingredientesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37))
        );

        jTabbedPane2.addTab("Ingredientes", ingredientesPanel);

        ingredientesPanel1.setBackground(new java.awt.Color(255, 255, 255));

        jButton17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/hamburguesa.jpg"))); // NOI18N
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });

        jButton19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/sandwich.jpg"))); // NOI18N
        jButton19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton19ActionPerformed(evt);
            }
        });

        jButton20.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/burrito.jpg"))); // NOI18N
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });

        jButton22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/papa1.jpg"))); // NOI18N
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });

        jButton24.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/arosCebolla.jpg"))); // NOI18N
        jButton24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton24ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout ingredientesPanel1Layout = new javax.swing.GroupLayout(ingredientesPanel1);
        ingredientesPanel1.setLayout(ingredientesPanel1Layout);
        ingredientesPanel1Layout.setHorizontalGroup(
            ingredientesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ingredientesPanel1Layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addGroup(ingredientesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(ingredientesPanel1Layout.createSequentialGroup()
                        .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(30, 30, 30)
                        .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(ingredientesPanel1Layout.createSequentialGroup()
                        .addComponent(jButton22, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton24, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(70, Short.MAX_VALUE))
        );
        ingredientesPanel1Layout.setVerticalGroup(
            ingredientesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ingredientesPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ingredientesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton19, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton17, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addGroup(ingredientesPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton24, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(37, 37, 37))
        );

        jTabbedPane2.addTab("Comida Extra", ingredientesPanel1);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        jButton25.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/chocolate.jpg"))); // NOI18N
        jButton25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton25ActionPerformed(evt);
            }
        });

        jButton26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/cafe.jpg"))); // NOI18N
        jButton26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton26ActionPerformed(evt);
            }
        });

        jButton27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/capuchino.jpg"))); // NOI18N
        jButton27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton27ActionPerformed(evt);
            }
        });

        jButton28.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/chai.jpg"))); // NOI18N
        jButton28.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton28ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton28, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(jButton27, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(46, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton27, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton26, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton25, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addComponent(jButton28, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(50, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Bebidas Calientes", jPanel1);

        jPanel3.setBackground(new java.awt.Color(255, 255, 255));

        jButton29.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/frozen_brown.jpg"))); // NOI18N
        jButton29.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton29ActionPerformed(evt);
            }
        });

        jButton30.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/jugo_frutas.jpg"))); // NOI18N
        jButton30.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton30ActionPerformed(evt);
            }
        });

        jButton31.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/lata-de-soda.jpg"))); // NOI18N
        jButton31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton31ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jButton29, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39)
                .addComponent(jButton30, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(54, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton31, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton30, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton29, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(165, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Bebidas Frías", jPanel3);

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));

        jButton32.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre2.jpg"))); // NOI18N
        jButton32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton32ActionPerformed(evt);
            }
        });

        jButton33.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre1.jpg"))); // NOI18N
        jButton33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton33ActionPerformed(evt);
            }
        });

        jButton34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre6.jpg"))); // NOI18N
        jButton34.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton34ActionPerformed(evt);
            }
        });

        jButton35.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre3.jpg"))); // NOI18N
        jButton35.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton35ActionPerformed(evt);
            }
        });

        jButton36.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre4.jpg"))); // NOI18N
        jButton36.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton36ActionPerformed(evt);
            }
        });

        jButton37.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pictures/postre5.jpg"))); // NOI18N
        jButton37.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton37ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(jButton33, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(48, 48, 48)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton35, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton34, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel4Layout.createSequentialGroup()
                    .addGap(39, 39, 39)
                    .addComponent(jButton36, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(286, Short.MAX_VALUE)))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap(170, Short.MAX_VALUE)
                    .addComponent(jButton37, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(155, 155, 155)))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton33, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton32, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton35, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(31, 31, 31)
                        .addComponent(jButton34, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(36, Short.MAX_VALUE))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap(132, Short.MAX_VALUE)
                    .addComponent(jButton36, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(44, 44, 44)))
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                    .addContainerGap(137, Short.MAX_VALUE)
                    .addComponent(jButton37, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(39, 39, 39)))
        );

        jTabbedPane2.addTab("Postres", jPanel4);

        getContentPane().add(jTabbedPane2);
        jTabbedPane2.setBounds(20, 30, 420, 290);

        seleccionBttn.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        seleccionBttn.setText("Seleccionar Item");
        seleccionBttn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                seleccionBttnActionPerformed(evt);
            }
        });
        getContentPane().add(seleccionBttn);
        seleccionBttn.setBounds(460, 320, 200, 60);

        pack();
    }// </editor-fold>//GEN-END:initComponents
     
    private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton21ActionPerformed
        padre.setEnabled(true);
        this.dispose();
    }//GEN-LAST:event_jButton21ActionPerformed

    private void seleccionBttnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_seleccionBttnActionPerformed
        jTable1.setValueAt( "1", fila, 0);
        jTable1.setValueAt( producto, fila, 1);
        jTable1.setValueAt(String.valueOf(precio), fila, 2);
        double suma=0;
        for (int i=0; i<fila; i++)        
            suma+= Double.parseDouble(jTable1.getValueAt(i, 2).toString());        
        suma+= precio;
        total.setText(String.valueOf(suma));
        fila++;
    }//GEN-LAST:event_seleccionBttnActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        int impri= JOptionPane.showConfirmDialog(this, "¿Desea imprimir la factura?");
        if (impri== 0) 
            JOptionPane.showMessageDialog(this, "Imprimiendo...");
    }//GEN-LAST:event_jButton15ActionPerformed

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        int cancel = JOptionPane.showConfirmDialog(this, "¿Desea cancelar la orden?");
        if (cancel== 0) {
            for (int i=0; i<=fila; i++)
            {
                jTable1.setValueAt("",i,0);
                jTable1.setValueAt("",i,1);
                jTable1.setValueAt("",i,2);
                jTable1.setValueAt("",i,3);                
            }
            fila= 0;
            JOptionPane.showMessageDialog(this, "La orden ha sido cancelada!");
        }
    }//GEN-LAST:event_jButton16ActionPerformed

    private void jTabbedPane2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabbedPane2MouseClicked

   }//GEN-LAST:event_jTabbedPane2MouseClicked

    private void jButton31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton31ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Gaseosa     
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        c10.setLabel("Coca cola");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c11.setLabel("Tiky");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c12.setLabel("Sprite");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c13.setLabel("Seven Up");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c14.setLabel("Rica Cola");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        producto = "Gaseosa";
        precio = 5.50;
    }//GEN-LAST:event_jButton31ActionPerformed

    private void jButton30ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton30ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Jugo de frutas      
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        c10.setLabel("Naranja");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c11.setLabel("Papaya");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c12.setLabel("Sandía");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c13.setLabel("Melón");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        producto = "Jugo de frutas";
        precio = 6.25;
    }//GEN-LAST:event_jButton30ActionPerformed

    private void jButton29ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton29ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Frozen capuccino";
        precio = 19;
    }//GEN-LAST:event_jButton29ActionPerformed

    private void jButton28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton28ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Té Chai Latté";
        precio = 12;
    }//GEN-LAST:event_jButton28ActionPerformed

    private void jButton27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton27ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Capuccino";
        precio = 18.25;
    }//GEN-LAST:event_jButton27ActionPerformed

    private void jButton26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton26ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Café";
        precio = 10.50;
    }//GEN-LAST:event_jButton26ActionPerformed

    private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton25ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Chocolate";
        precio = 18;
    }//GEN-LAST:event_jButton25ActionPerformed

    private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton24ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Comida #5        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        c10.setLabel("Ranch");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Agridulce");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        producto = "Aros de Cebolla";
        precio = 15;
    }//GEN-LAST:event_jButton24ActionPerformed

    private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton22ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Comida #4        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        c10.setLabel("Pequeñas");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c11.setLabel("Grandes");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        producto = "Papas fritas";
        precio = 15.50;
    }//GEN-LAST:event_jButton22ActionPerformed

    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton20ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Comida #3        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        c10.setLabel("Alfalfa");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Queso");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Frijol");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Tomate");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Aguacate");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c14.setState(true);
        producto = "Burrito";
        precio = 9;
    }//GEN-LAST:event_jButton20ActionPerformed

    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton19ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Comida #2        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        c10.setLabel("Cheddar Blanco");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Cheddar Amarillo");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Jamón");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Tomate");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Lechuga");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c14.setState(true);
        producto = "Sandwich";
        precio = 18.50;
    }//GEN-LAST:event_jButton19ActionPerformed

    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton17ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();               
        //Comida #1        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        c10.setLabel("Cheddar Blanco");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Cheddar Amarillo");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Lechuga");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Tomate");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Mayonesa");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c14.setState(true);
        producto = "Hamburguesa";
        precio = 18.50;
    }//GEN-LAST:event_jButton17ActionPerformed

    private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton23ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Mostaza";
        precio = 3.25;
    }//GEN-LAST:event_jButton23ActionPerformed

    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton18ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Mayonesa";
        precio = 2.10;
    }//GEN-LAST:event_jButton18ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        jTabbedPane1.setVisible(false);
        producto = "Pepinillos";
        precio = 0.60;
    }//GEN-LAST:event_jButton13ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Tomate";
        precio = 1.50;
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Lechuga";
        precio = 1;
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();
        //Combo #6            
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        Checkbox c16 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        jPanel2.add(c16);
        c10.setLabel("Vainilla");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Fresa");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Chocolate");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Topping M&M's");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Topping Oreo");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c15.setLabel("Lays de Especias y Tomate");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c15.setState(true);
        c16.setLabel("Lays de Limón");
        c16.setLocation(8, 164);
        c16.setSize(150, 24);
        producto = "Combo #6";
        precio = 25;
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();
        //Combo #5            
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        c10.setLabel("Lechuga");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Carne molida");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Pollo spicy");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Cheddar Blanco");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Cheddar Amarillo");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c15.setLabel("Tomate");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c15.setState(true);
        producto = "Combo #5";
        precio = 19;
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();        
        //Combo #4            
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        c10.setLabel("Lechuga");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Champiñones");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Mayonesa");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Cheddar Blanco");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Cheddar Amarillo");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c15.setLabel("Tomate");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c15.setState(true);
        producto = "Combo #4";
        precio = 28;
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();       
        //Combo #3            
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        Checkbox c16 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        jPanel2.add(c16);
        c10.setLabel("Lechuga");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Pepinillos");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Mayonesa");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Cheddar Blanco");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Cheddar Amarillo");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c15.setLabel("Tomate");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c15.setState(true);
        c16.setLabel("Agua c/hielos");
        c16.setLocation(8, 164);
        c16.setSize(150, 24);
        c16.setState(true);
        producto = "Combo #3";
        precio = 45;
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();        
        //Combo #2            
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        Checkbox c16 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        jPanel2.add(c16);
        c10.setLabel("Extra Crispy");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Crispy");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Ensalada de papa");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Ensalada de repollo");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Pierna");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c14.setState(true);
        c15.setLabel("Cuadril");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c16.setLabel("Ala");
        c16.setLocation(8, 164);
        c16.setSize(150, 24);        
        producto = "Combo #2";
        precio = 30;
    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        jTabbedPane1.setVisible(true);
        seleccionBttn.setLocation(460, 330);
        jPanel2.removeAll();        
        //Combo #1        
        Checkbox c10 = new Checkbox();
        Checkbox c11 = new Checkbox();
        Checkbox c12 = new Checkbox();
        Checkbox c13 = new Checkbox();
        Checkbox c14 = new Checkbox();
        Checkbox c15 = new Checkbox();
        jPanel2.add(c10);
        jPanel2.add(c11);
        jPanel2.add(c12);
        jPanel2.add(c13);
        jPanel2.add(c14);
        jPanel2.add(c15);
        c10.setLabel("Frijol");
        c10.setLocation(8, 8);
        c10.setSize(150, 24);
        c10.setState(true);
        c11.setLabel("Crema");
        c11.setLocation(8, 34);
        c11.setSize(150, 24);
        c11.setState(true);
        c12.setLabel("Cuadritos de papa");
        c12.setLocation(8, 60);
        c12.setSize(150, 24);
        c12.setState(true);
        c13.setLabel("Nachos");
        c13.setLocation(8, 86);
        c13.setSize(150, 24);
        c13.setState(true);
        c14.setLabel("Mayonesa");
        c14.setLocation(8, 112);
        c14.setSize(150, 24);
        c14.setState(true);
        c15.setLabel("Agua c/hielos");
        c15.setLocation(8, 138);
        c15.setSize(150, 24);
        c15.setState(true);
        producto = "Combo #1";
        precio = 20;        
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton32ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 2";
        precio = 9.50;
    }//GEN-LAST:event_jButton32ActionPerformed

    private void jButton33ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton33ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 1";
        precio = 14;
    }//GEN-LAST:event_jButton33ActionPerformed

    private void jButton34ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton34ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 6";
        precio = 13.50;
    }//GEN-LAST:event_jButton34ActionPerformed

    private void jButton35ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton35ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 3";
        precio = 11;
    }//GEN-LAST:event_jButton35ActionPerformed

    private void jButton36ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton36ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 4";
        precio = 7;
    }//GEN-LAST:event_jButton36ActionPerformed

    private void jButton37ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton37ActionPerformed
        jTabbedPane1.setVisible(false);
        seleccionBttn.setLocation(450, 145);
        producto = "Postre No. 5";
        precio = 7;
    }//GEN-LAST:event_jButton37ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        if (jTable1.getSelectedRowCount() == 1) 
        {
            DefaultTableModel temp = (DefaultTableModel) jTable1.getModel();
            temp.removeRow(jTable1.getSelectedRow());
            fila--;
            double suma=0;
            for (int i=0; i<fila; i++)        
                suma+= Double.parseDouble(jTable1.getValueAt(i, 2).toString());        
            suma+= precio;
            total.setText(String.valueOf(suma));            
        }
    }//GEN-LAST:event_jButton14ActionPerformed

    public static void main(String args[]) {
        
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FormTomaPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FormTomaPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FormTomaPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FormTomaPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FormTomaPedido().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel combosPane;
    private javax.swing.JPanel ingredientesPanel;
    private javax.swing.JPanel ingredientesPanel1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton23;
    private javax.swing.JButton jButton24;
    private javax.swing.JButton jButton25;
    private javax.swing.JButton jButton26;
    private javax.swing.JButton jButton27;
    private javax.swing.JButton jButton28;
    private javax.swing.JButton jButton29;
    private javax.swing.JButton jButton30;
    private javax.swing.JButton jButton31;
    private javax.swing.JButton jButton32;
    private javax.swing.JButton jButton33;
    private javax.swing.JButton jButton34;
    private javax.swing.JButton jButton35;
    private javax.swing.JButton jButton36;
    private javax.swing.JButton jButton37;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTable jTable1;
    private javax.swing.JButton seleccionBttn;
    private javax.swing.JLabel total;
    // End of variables declaration//GEN-END:variables
}
